:root.light {
  color: #000;
  background:#fff;
}


:root.drak {
  color: #fff;
  background: #000;
}

::view-transition-new(root),
::view-transition-old(root) {
/* 关闭默认动画，否则影响自定义动画的执行 */
   animation: none;
}

.dark::view-transition-old(root) {
  z-index: 100;
}